import LogIn from './src/views/pages/login';
import Detail from './src/views/pages/detail';
import DetailRedux from './src/views/pages/detailredux';
import ReactDom from 'react-dom';
import { BrowserRouter as Router, Route, Switch } from "react-router-dom";
import React from 'react';
import store from './src/store';
import { Provider } from 'react-redux';
import './index.scss';

ReactDom.render(
  <Provider store={store}>
    <Router>
      <Switch>
        <Route path="/" exact component={LogIn} />
        <Route path="/detail/:channel/:user" component={Detail} />
        <Route path="/detailredux/:channel/:user" component={DetailRedux} />
      </Switch>
    </Router>
  </Provider>
  , document.getElementById('root'));